#ifndef FASTORDERDLG_H
#define FASTORDERDLG_H

#include <QDialog>
#include<QComboBox>

namespace Ui {
class FastOrderDlg;
}

class FastInfo{
public:
    FastInfo(QString keyString,    int    bs,    int PriceType,    int     OverPrice,    int ActionType);

    QString keyString;
    int    bs;
    int PriceType;
    int     OverPrice;
    int ActionType;
};

class FastOrderDlg : public QDialog
{
    Q_OBJECT

public:
    explicit FastOrderDlg(QWidget *parent = 0);
    ~FastOrderDlg();

    bool GetFastOrderFlg();
    FastInfo* GetFastInfo(QString key);

    bool JudgeKeyStringFlg(QString key);

public slots:
    void SlotJudgeFastKeyString(QString msg);
    void SlotCurrentKeyChanged(QString key);
    void OKButtonClicked();
signals:
    void SigJudgeFastKeyString(QString);

private:
    QMap<QString,FastInfo*> m_FastInfos;
    Ui::FastOrderDlg *ui;
};

#endif // FASTORDERDLG_H
